<?php
/**
 * Created by PhpStorm.
 * User: xiao
 * Date: 2018/4/13
 * Time: 10:11
 */

namespace App\Http\Controllers\Api;


use App\Http\Base\ApiController;
use App\Http\Requests\Api\User\UserLoginPostRequest;
use App\Http\Requests\Api\User\UserRegisterPostRequest;
use App\Http\Service\Api\ApiUserService;

class UserController extends ApiController
{

    public function getUserInfo()
    {
    }


    public function login(UserLoginPostRequest $request)
    {
        return ApiUserService::login();
    }

    /**
     * 注册
     * @param UserRegisterPostRequest $request
     * @return array
     */
    public function register(UserRegisterPostRequest $request)
    {
        return ApiUserService::register();
    }

    /** 退出登录 */
    public function logout()
    {
        return ApiUserService::logout();
    }

}